package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品管理对象 qyi_goods
 * 
 * @author ruoyi
 * @date 2024-12-20
 */
public class QyiGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long goodsId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String goodsDesc;

    public BigDecimal getGoodsMaketPrice() {
        return goodsMaketPrice;
    }

    public void setGoodsMaketPrice(BigDecimal goodsMaketPrice) {
        this.goodsMaketPrice = goodsMaketPrice;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public Integer getGoodsStock() {
        return goodsStock;
    }

    public void setGoodsStock(Integer goodsStock) {
        this.goodsStock = goodsStock;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    /** 商品价格，单位为：分 */
    @Excel(name = "商品价格")
    private BigDecimal goodsPrice;

    /** 商品市场价，即原价，单位为：分 */
    @Excel(name = "商品市场价")
    private BigDecimal goodsMaketPrice;

    /** 商品库存 */
    @Excel(name = "商品库存")
    private Integer goodsStock;

    /** 商品图片链接 */
    @Excel(name = "商品图片链接")
    private String goodsImg;

    /** 商品上架时间，开始售卖时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "商品上架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date goodsSellTime;

    /** 商品状态，0待审核，1正常售卖，2已下架，3已售罄 */
    @Excel(name = "商品状态")
    private Integer goodsStatus;

    private QyiSupplier supplier;

    /** 供應商ID*/
    private  Long supplierId;

    private String supplierName;

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }
    public void setGoodsDesc(String goodsDesc) 
    {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsDesc() 
    {
        return goodsDesc;
    }

    public void setGoodsImg(String goodsImg)
    {
        this.goodsImg = goodsImg;
    }

    public String getGoodsImg() 
    {
        return goodsImg;
    }
    public void setGoodsSellTime(Date goodsSellTime) 
    {
        this.goodsSellTime = goodsSellTime;
    }

    public Date getGoodsSellTime() 
    {
        return goodsSellTime;
    }
    public void setGoodsStatus(Integer goodsStatus) 
    {
        this.goodsStatus = goodsStatus;
    }

    public Integer getGoodsStatus() 
    {
        return goodsStatus;
    }
    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public QyiSupplier getSupplier() {
        return supplier;
    }

    public void setSupplier(QyiSupplier supplier) {
        this.supplier = supplier;
    }

    @Override
    public String toString() {
        return "QyiGoods{" +
                "goodsId=" + goodsId +
                ", goodsName='" + goodsName + '\'' +
                ", goodsDesc='" + goodsDesc + '\'' +
                ", goodsPrice=" + goodsPrice +
                ", goodsMaketPrice=" + goodsMaketPrice +
                ", goodsStock=" + goodsStock +
                ", goodsImg='" + goodsImg + '\'' +
                ", goodsSellTime=" + goodsSellTime +
                ", goodsStatus=" + goodsStatus +
                ", supplier=" + supplier +
                ", supplierId=" + supplierId +
                ", supplierName='" + supplierName + '\'' +
                '}';
    }

}
